<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<title th:fragment="titleName">首页</title>
<style th:fragment="styles">
    #chartDiv, #container {
        height: 320px;
        width: 100%;
        overflow: hidden;
    }
</style>
<div th:fragment="content">
    <div class="wrapper wrapper-content">
        <div class="row  border-bottom white-bg dashboard-header">

            <div class="col-lg-6">
                <div class="panel panel-info">
                    <div class="panel-heading">
                        <i class="fa fa-info-circle"></i>企业管理
                    </div>
                    <div class="panel-body">
                        <div class="tabs-container">
                            <form class="form-horizontal" id="myformdata">
                                <div class="panel-body form-horizontal">
                                    <input id="enterpriseId" type="hidden" th:value="${enterprise.enterpriseId}"/>
                                    <div class="row">
                                        <label class="col-lg-3 control-label">企业名称</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly th:value="${enterprise.enterpriseName}" type="text"
                                                       autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">业主姓名</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly th:value="${enterprise.userName}" type="text"
                                                       autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">联系电话</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input name="phone" id="phone" th:value="${enterprise.phone}" type="text"
                                                       autocomplete="off" class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">地址</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly th:value="${enterprise.fullAddress}" type="text"
                                                       autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">投资规模</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly th:value="${#numbers.formatDecimal(enterprise.investment,1,'COMMA',2,'POINT') + ' 元'}" type="text"
                                                       autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">占地面积</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly th:value="${#numbers.formatDecimal(enterprise.area,1,'COMMA',2,'POINT') + ' ㎡'}" type="text"
                                                       autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <label class="col-lg-3 control-label">地理坐标</label>
                                        <div class="col-lg-9">
                                            <div class="form-group">
                                                <input readonly
                                                       th:value="${enterprise.longitude+','+enterprise.latitude}"
                                                       type="text" autocomplete="off"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-lg-12" style="text-align: center">
                                            <a class="btn btn-success" onclick="edit()">
                                                修改
                                            </a>
                                        </div>
                                    </div>

                                </div>
                            </form>

                        </div>
                    </div>

                </div>
            </div>


        </div>

    </div>


</div>
<div th:fragment="scriptRef">
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/slaughter/personal.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Personal.init();
</script>
</html>